package com.song.studylineserver.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.song.studylineserver.domain.Title;
import com.song.studylineserver.service.TitleService;
import com.song.studylineserver.mapper.TitleMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Set;

/**
* @author Swtao
* @description 针对表【sl_title】的数据库操作Service实现
* @createDate 2022-02-10 22:27:20
*/
@Service
public class TitleServiceImpl extends ServiceImpl<TitleMapper, Title>
    implements TitleService{
    @Resource
    TitleMapper titleMapper;
    @Override
    public List<Title> selectTitleByType(String Studytype) {
        return titleMapper.selectTitleByType(Studytype);
    }

    @Override
    public Title selectTitleById(Integer id) {
        return titleMapper.selectTitleById(id);
    }

    @Override
    public Set<Title> selectTitleByUser(String UserId) {
        return titleMapper.selectTitleByUser(UserId);
    }
}




